@extends('home.search.layout')
@section('content')

		<div class="list_resulte_banner">
			<div class="list_resulte_left">
				<span class="list_breadcrumb" style=" color: #cc0000;">此页面还未出</span>

				<div class="list_cont">
					<ul>
						@if($archives)
							@foreach($archives as $v)
						<li>
							<a href="{{route('article.show', [$v->id])}}" target="_blank">
								<h2 class="list_cont_title">{!!str_replace($key,"<em>".$key."</em>",$v->title)  !!}</h2>
							</a>
							<div class="list_cont_box">
								<img src="{{route('image', [trim($v->cover, '/'), '106x66'])}}">
								<div class="list_cont_banner">
									<p>{{$v->abstract}}</p>
									<span>
										<a href="#">www.qiyiguo.tv</a>
									</span>
								</div>
							</div>
						</li>
						@endforeach
							@endif
					</ul>
				</div>
				<!--分页-->
				<div class="index_page page_center">
					@if(!empty($archives->links()->html))
						<div class="global_page" >
							{{$archives->links()}}
						</div>
					@endif
				</div>
                <!--分页-->
			</div>
			<div class="list_resulte_right">
                <div class="list_resulte_tj">
                	<h2>推荐直播</h2>
                </div>
                <div class="list_cont_right">
                	<ul>
						@if(!empty($recommend))
							@foreach($recommend as $v)
                		<li>
                			<a href="{{ route('anchor.show', [$v->id]) }}" target="_blank">
                			    <div class="list_pic_box">
                			    	<div class="list_pic">
                			    		<img src="{{route('image', [trim($v->cover, '/'), '266x146'])}}">
                			    	</div>
                			    	<div class="list_pic_cont">
                			    		<span class="list_pic_cont_userpic"><img src="{{route('image', [trim($v->avatar, '/'), '45x45'])}}"></span>
                			    		<h2>{{$v->name}}</h2>
                			    		<p>
                			    		<span class="list_name">
											@if (mb_strlen($v->room_name) > 12)
												{{ mb_substr($v->room_name, 0, 11) }}..
											@else
												{{$v->room_name}}
											@endif</span>
                			    		<span class="list_fs">{{ num2word($v->online) }}在线</span>
                			    		</p>
                			    	</div>
                			    </div>
                		    </a>
                		</li>
                		@endforeach
							@endif
                	
                	</ul>
                </div>
			</div>
		</div>
@endsection